package org.zhengquan.dto;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;
import org.zhengquan.pojo.SysAcl;

/**
 * @author zhengquan
 * @date 2017/11/5
 */
@Getter
@Setter
public class AclDto extends SysAcl {
    /**
     * 是否默认选中
     */
    private boolean checked;
    /**
     * 是否有权限操作
     */
    private boolean hasAcl;

    public static AclDto adapt(SysAcl sysAcl) {
        AclDto aclDto = new AclDto();
        BeanUtils.copyProperties(sysAcl, aclDto);
        return aclDto;
    }
}
